package com.sky.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "sky.alioss")
@Data
//阿里云OSS类，用来读取配置文件中的阿里云OSS相关配置
//prefix属性指定配置文件的前缀，这里是sky.alioss，表示配置文件中所有以sky.alioss开头的配置都属于阿里云OSS配置
public class AliOssProperties {

    private String endpoint;
    private String accessKeyId;
    private String accessKeySecret;
    private String bucketName;

}
